﻿Imports FluentNHibernate.Mapping

Public Class CompanySettingsMap
    Inherits ClassMap(Of nHibernate.Models.CompanySettingsModel)

    Public Sub New()
        Id(Function(x) x.CompanyName)
        Map(Function(x) x.TaxID)
        Map(Function(x) x.TradeID)
        Map(Function(x) x.Addition)
        Map(Function(x) x.Street)
        Map(Function(x) x.No)
        Map(Function(x) x.ZipCode)
        Map(Function(x) x.City)
        Map(Function(x) x.Country)

        Map(Function(x) x.CompanyID)
        Map(Function(x) x.IsIDNumeric).Default(False)
    End Sub
End Class
